﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Win32Wrapper.Win32.Converter
{
    public class ExtendedWindowStyleConverter
    {
        public static object Convert(object obj)
        {
            ExtendedWindowStyles style = (ExtendedWindowStyles)obj;

            switch (style)
            {
                case ExtendedWindowStyles.WS_EX_ACCEPTFILES: return "Accept Files";
                case ExtendedWindowStyles.WS_EX_APPWINDOW: return "AppWindow";
                case ExtendedWindowStyles.WS_EX_CLIENTEDGE: return "ClientEdge";
                case ExtendedWindowStyles.WS_EX_CONTEXTHELP: return "ContextHelp";
                case ExtendedWindowStyles.WS_EX_CONTROLPARENT: return "ControlParent";
                case ExtendedWindowStyles.WS_EX_DLGMODALFRAME: return "DLGModalFrame";
                case ExtendedWindowStyles.WS_EX_LAYERED: return "Layered";
                case ExtendedWindowStyles.WS_EX_LAYOUTRTL: return "LayoutRTL";
                case ExtendedWindowStyles.WS_EX_LEFT: return "Left";
                case ExtendedWindowStyles.WS_EX_LEFTSCROLLBAR: return "Left Scrollbar";
                case ExtendedWindowStyles.WS_EX_MDICHILD: return "MDIChild";
                case ExtendedWindowStyles.WS_EX_NOACTIVATE: return "No activate";
                case ExtendedWindowStyles.WS_EX_NOINHERITLAYOUT: return "No inherit layout";
                case ExtendedWindowStyles.WS_EX_NOPARENTNOTIFY: return "No parent notify";
                case ExtendedWindowStyles.WS_EX_RIGHT: return "Right";
                case ExtendedWindowStyles.WS_EX_RTLREADING: return "RTL Reading";
                case ExtendedWindowStyles.WS_EX_STATICEDGE: return "Static Edge";
                case ExtendedWindowStyles.WS_EX_TOOLWINDOW: return "ToolWindow";
                case ExtendedWindowStyles.WS_EX_TOPMOST: return "TopMost";
                case ExtendedWindowStyles.WS_EX_TRANSPARENT: return "Transparent";
                case ExtendedWindowStyles.WS_EX_WINDOWEDGE: return "Window Edge";
                default: return obj;
            }
        }
    }
}
